<?php
class CompTechnology extends AppModel
{
	var $name='CompTechnology';
	var $primaryKey = 'id'; 
	
//	var $belongsTo = array(
//           'type_id' => array(
//           'className'    => 'Techstack',
//           'foreignKey'   => 'type_id'
//      ),
//      
//      'Techstack'=>array(
//			'fields'=>'Techstack.depart_charge',
//			'className' => 'Techstack',
//			'foreignKey' => 'type_id',
//		)
//	);
	var $hasMany = array(
			'Attachment' => array(
			'conditions' => array("Attachment.is_deleted='0'"),
			'className' => 'Attachment',
			'foreignKey' => 'pid'
			)
	);
	var $belongsTo = array(
			'Company'=>array(
				'conditions' => array("Company.is_deleted='0'"),
				'className'=>'Company',
				'foreignKey'=>'cid'	
			)
	);
}
?>